package com.lesso.zgs.sunflower.controller;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class RabbitSimpleConsumer {
    @RabbitListener(queues = "test-queue")
    public void receive(String msg) {
        System.out.println("收到RabbitMQ消息: " + msg);
    }
} 